+2007-03-17 Emmanuele Bassi <ebassi@gnome.org>
+
+ * gtk/gtkrecentaction.c (recent_chooser_set_property),
+ (gtk_recent_action_set_property): Remove useless inlined
+ function and propagate the properties to the GtkRecentChooser
+ objects we create, instead of all the proxies.
+
+ (set_current_filter): Remove 'inline' marker.
+
2007-03-16 Emmanuele Bassi <ebassi@gnome.org>
+ Apply changes suggested by Michael Natterer. (#338843)
+
* gtk/gtkaction.h:
* gtk/gtkaction.c: Rename get_submenu() to create_menu();
rename gtk_action_get_submenu() to gtk_action_create_menu().
G_IMPLEMENT_INTERFACE (GTK_TYPE_RECENT_CHOOSER,
gtk_recent_chooser_iface_init));
-static inline void
-recent_chooser_set_property (GtkRecentAction *action,
- const gchar *property_name,
- const GValue *value)
-{
- GSList *proxies, *l;
-
- proxies = gtk_action_get_proxies (GTK_ACTION (action));
- for (l = proxies; l != NULL; l = l->next)
- {
- GObject *proxy = l->data;
-
- g_object_set_property (proxy, property_name, value);
- }
- g_slist_free (proxies);
-}
-
static gboolean
gtk_recent_action_set_current_uri (GtkRecentChooser *chooser,
const gchar *uri,
}
}
-static inline void
+static void
set_current_filter (GtkRecentAction *action,
GtkRecentFilter *filter)
{
{
GtkRecentAction *action = GTK_RECENT_ACTION (gobject);
GtkRecentActionPrivate *priv = action->priv;
+ GSList *l;
switch (prop_id)
{
return;
}
- recent_chooser_set_property (action, pspec->name, value);
+ /* propagate the properties to the proxies we have created */
+ for (l = priv->choosers; l != NULL; l = l->next)
+ {
+ GObject *proxy = l->data;
+
+ g_object_set_property (proxy, pspec->name, value);
+ }
}
static void